<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>退货管理</title>
    <%@ include file="common.jsp"%>
    <script type="text/javascript" src="/static/js/stockOutcomeBill.js"></script>
</head>
<body>
    <table id="stockOutcomeBill_datagrid"></table>
    <div id="product_view"><table id="product_datagrid"></table></div>

    <div id="stockOutcomeBill_toolbar">
        <a id="add-dataGrid" class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="add">新增退货</a>
        <a class="easyui-linkbutton" iconCls="icon-remove" data-cmd="changeAudit" plain="true"  id="changeStatus_btn">审核订单</a>
        <a class="easyui-linkbutton" iconCls="icon-reload" data-cmd="reload" plain="true" >刷新</a>
    </div>
    <div id="refund_btns">
        <a class="easyui-linkbutton" href="#" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
        <a class="easyui-linkbutton" href="#" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
    </div>


    <table id="itemTr">
        <tr>
            <td></td>
            <td>
                <span tag="sn" name="product.sn"></span>
                <input type="hidden" name="product.id" tag="pid"/>
            </td>
            <td><span tag="productName" name="product.name" ></span></td>
            <td><input tag="number" type="number" name="totalNumber" style="width:100px"/></td>
            <td><input tag="salePrice" name="salePrice" type="number" style="width:100px" /></td>
            <td><span tag="countPrice" name="countPrice"></span></td>
            <td>
                <a class="easyui-linkbutton del" iconCls="icon-remove" plain="true" data-cmd="remove"></a>
            </td>
        </tr>
    </table>



    <div id="stockOutcomeBill_dialog">
        <form id="stockOutcomeBill_form" method="post">
            <input type="hidden" name="id"/>
            <!--创建表格用于写入操作的数据-->
            <table align="center" style="margin-top: 1px">
                <tbody>
                <tr>
                    <td>
                        <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="addProduct" align="left"></a>
                    </td>
                    <td><input class="easyui-textbox" type="text" name="sn" prompt="退货订单编号"></td>
                    <td></td>
                    <td><input name="supplier.id" class="easyui-combobox"  prompt="供应商"
                               data-options="url:'/supplier/list.do',textField:'name',valueField:'id',panelHeight:'auto'"/></td>
                    <td></td>
                    <td><input name="depot.id" class="easyui-combobox"  prompt="仓库"
                               data-options="url:'/depot/list.do',textField:'name',valueField:'id',panelHeight:'auto'"/></td>
                </tr>
                </tbody>
            </table>
            <table align="center" style="margin-top: 20px">
                <thead>
                <tr style="align: center">
                    <td width="50" style="align: center"></td>
                    <td width="150" style="align: center">商品编码</td>
                    <td width="150" style="align: center">商品名称</td>
                    <td width="150" style="align: center">数量</td>
                    <td width="150" style="align: center">单价</td>
                    <td width="150" style="align: center">总计</td>
                    <td></td>
                </tr>
                </thead>
                <tbody id="tr_appendTo">
                </tbody>
            </table>
        </form>
    </div>
</body>
</html>
